package designPattern.structuralPattern.adapter.双向适配器模式;

/**
 * @author wei.zhao
 * @description:
 * @date 2021年12月15日 14:15
 */
public class Test {

    public static void main(String[] args) {
        test1(new TwoWayAdapter(new AdapteeImpl()));
        test2(new TwoWayAdapter(new TargetImpl()));
    }

    static void test1(Target target) {
        target.request();
    }

    static void test2(Adaptee adaptee) {
        adaptee.specificRequest();
    }


}
